.class public Lcom/waiqin365/lightapp/view/DatePagerItemView;
.super Landroid/widget/LinearLayout;


# instance fields
.field public a:Lcom/waiqin365/lightapp/view/dt;

.field private b:Landroid/content/Context;

.field private c:Lcom/waiqin365/lightapp/kehu/share/view/HorizontalListView;

.field private d:Ljava/util/LinkedList;

.field private e:Lcom/waiqin365/lightwork/tracker/a/a;

.field private f:I


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0

    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    iput-object p1, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->b:Landroid/content/Context;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/view/DatePagerItemView;->a()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/view/DatePagerItemView;I)I
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->f:I

    return p1
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/view/DatePagerItemView;)Ljava/util/LinkedList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->d:Ljava/util/LinkedList;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 4

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->b:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f03027b

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    const v0, 0x7f0c01cb

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/view/HorizontalListView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->c:Lcom/waiqin365/lightapp/kehu/share/view/HorizontalListView;

    new-instance v0, Lcom/waiqin365/lightwork/tracker/a/a;

    iget-object v2, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->b:Landroid/content/Context;

    iget-object v3, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->d:Ljava/util/LinkedList;

    invoke-direct {v0, v2, v3}, Lcom/waiqin365/lightwork/tracker/a/a;-><init>(Landroid/content/Context;Ljava/util/LinkedList;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->e:Lcom/waiqin365/lightwork/tracker/a/a;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->c:Lcom/waiqin365/lightapp/kehu/share/view/HorizontalListView;

    iget-object v2, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->e:Lcom/waiqin365/lightwork/tracker/a/a;

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/kehu/share/view/HorizontalListView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->c:Lcom/waiqin365/lightapp/kehu/share/view/HorizontalListView;

    new-instance v2, Lcom/waiqin365/lightapp/view/ds;

    invoke-direct {v2, p0}, Lcom/waiqin365/lightapp/view/ds;-><init>(Lcom/waiqin365/lightapp/view/DatePagerItemView;)V

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/kehu/share/view/HorizontalListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/view/DatePagerItemView;->addView(Landroid/view/View;)V

    return-void
.end method

.method public b()V
    .locals 4

    const/4 v2, 0x0

    move v1, v2

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->d:Ljava/util/LinkedList;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->d:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->size()I

    move-result v0

    if-ge v1, v0, :cond_1

    iget v0, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->f:I

    if-ne v1, v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->d:Ljava/util/LinkedList;

    invoke-virtual {v0, v1}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/tracker/model/a;

    const/4 v3, 0x1

    iput-boolean v3, v0, Lcom/waiqin365/lightwork/tracker/model/a;->f:Z

    :goto_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->d:Ljava/util/LinkedList;

    invoke-virtual {v0, v1}, Ljava/util/LinkedList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/tracker/model/a;

    iput-boolean v2, v0, Lcom/waiqin365/lightwork/tracker/model/a;->f:Z

    goto :goto_1

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->e:Lcom/waiqin365/lightwork/tracker/a/a;

    iget v1, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->f:I

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightwork/tracker/a/a;->b(I)V

    return-void
.end method

.method public setData(Ljava/util/LinkedList;)V
    .locals 1

    iput-object p1, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->d:Ljava/util/LinkedList;

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->e:Lcom/waiqin365/lightwork/tracker/a/a;

    invoke-virtual {v0, p1}, Lcom/waiqin365/lightwork/tracker/a/a;->a(Ljava/util/LinkedList;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->e:Lcom/waiqin365/lightwork/tracker/a/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/a/a;->notifyDataSetChanged()V

    return-void
.end method

.method public setOnDateSelectedListener(Lcom/waiqin365/lightapp/view/dt;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/view/DatePagerItemView;->a:Lcom/waiqin365/lightapp/view/dt;

    return-void
.end method
